/PROG  BG_SEND
/ATTR
OWNER		= MNEDITOR;
COMMENT		= "";
PROG_SIZE	= 632;
CREATE		= DATE 25-04-05  TIME 15:27:30;
MODIFIED	= DATE 25-04-05  TIME 15:58:28;
FILE_NAME	= ;
VERSION		= 0;
LINE_COUNT	= 17;
MEMORY_SIZE	= 976;
PROTECT		= READ_WRITE;
TCD:  STACK_SIZE	= 0,
      TASK_PRIORITY	= 50,
      TIME_SLICE	= 0,
      BUSY_LAMP_OFF	= 0,
      ABORT_REQUEST	= 0,
      PAUSE_REQUEST	= 0;
DEFAULT_GROUP	= *,*,*,*,*;
CONTROL_CODE	= 00000000 00000000;
/APPL
/MN
   1:  !DATA_TRANS ;
   2:  !Param1(int): trans mode ;
   3:  !            1 - GO32  2-GI32 ;
   4:  !Param2(int): big-endian ;
   5:  !            1 - big-endian  0-li ;
   6:  !Param3(int): Start io index numb ;
   7:  !Param4(int): End io index number ;
   8:  !Param5(int): R[] index number ;
   9:   ;
  10:  !Send Data to PLC ;
  11:  R[1]=$ENC_STAT[1].$ENC_COUNT ;
  12:  CALL DATA_TRANS(1,0,25,56,1) ;
  13:   ;
  14:   ;
  15:   ;
  16:  !Recive data from PLC ;
  17:  CALL DATA_TRANS(2,0,25,56,2) ;
/POS
/END
